package com.sm.imlibrary.imsdk;

import com.sm.imlibrary.roondao.entity.DbChatMessage;
import com.sm.imlibrary.model.SIMElemType;

/**
 * created by zhud on 2019/7/9
 */
public class SIMMessage {
    private SIMConversation conversation;
    private DbChatMessage chatMessage;

    public SIMElemType getType() {
        if (SIMElemType.Text.name().equals(chatMessage.messageType)) {
            return SIMElemType.Text;
        } else {
            return SIMElemType.Invalid;
        }
    }

    public SIMConversation getConversation() {
        return conversation;
    }

    public DbChatMessage getChatMessage() {
        return chatMessage;
    }
}
